package com.gy.cloud.cloudc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HiController {

    @Autowired
    private HiService hiService;

    @GetMapping("hi")
    public Object hi(String name) {
        name = name == null ? "SERVICE-C" : name;
        return hiService.hi(name);
    }


}
